
class Kill:

    def __init__(self, name="", freeze_time=0, attack=0):
        self.name = name
        self.freeze_time = freeze_time
        self.attack = attack
        self.__fali = 100

    @property
    def freeze_time(self):
        return self.__freeze_time

    @freeze_time.setter
    def freeze_time(self, value):
        if value > 120:
            value = 120
        elif value < 0:
            value = 0
        self.__freeze_time = value

    @property
    def attack(self):
        return self.__attack

    @attack.setter
    def attack(self, value):
        if value > 200:
            value = 200
        elif value < 0:
            value = 0
        self.__attack = value

    @property
    def fali(self):
        return self.__fali

kill = Kill("六脉神剑",399,499)
print(kill.__dict__)
print(kill.name)
print(kill.freeze_time)
print(kill.attack)
print(kill.fali)